<style type="text/css">
.validator {
    background: -moz-linear-gradient(center top , #2D2D2D 0%, #0E0E0E 100%) repeat scroll 0 0 transparent;
    border-radius: 5px 5px 5px 5px;
    color: #FFFFFF;
    font-size: 85%;
    height: 18px;
    line-height: 18px;
    margin-left: -2px;
    opacity: 0.8;
    padding: 3px 10px;
    vertical-align: middle;
	position:absolute;
}
.validator .arrow {
    border-color: #0E0E0E transparent -moz-use-text-color;
    border-left: 0 solid transparent;
    border-right: 6px solid transparent;
    border-style: solid solid none;
    border-width: 6px 6px 0 0;
    bottom: -6px;
    display: block;
    height: 0;
    left: 10px;
    position: absolute;
    width: 0;
}
input.invalid, textarea.invalid {
    box-shadow: 0 0 3px red;
}
.no-boxshadow input.invalid, .no-boxshadow textarea.invalid {
    background-color: #FFF5F7;
    border: 1px solid red;
}
</style>
<?php
echo $this->Html->script(array('jquery.form','common','placeholder'), false);
?>
<script type="text/javascript">
$(document).ready(function(){
	init_ajax_forms();
});
	
</script>
<?php //$this->Html->scriptEnd(); ?>
<div class="venues form">
<?php echo $this->Form->create('Venue', array('class' => 'ajaxForm'));?>
	<fieldset>
		<legend><?php __('Add Venue'); ?></legend>
	<?php
		echo $this->Form->input('marker_id');
		echo $this->Form->input('user_id');
		echo $this->Form->input('type');
		/*echo $this->Form->input('VenueDetail.name');
		echo $this->Form->input('VenueDetail.description');
		echo $this->Form->input('VenueDetail.address1');
		echo $this->Form->input('VenueDetail.address2');
		echo $this->Form->input('VenueDetail.postal_code');
		echo $this->Form->input('VenueDetail.country_id');
		echo $this->Form->input('VenueDetail.phone');
		echo $this->Form->input('VenueDetail.web');*/
		echo $this->Form->input('VenueDetail.0.name');
		echo $this->Form->input('VenueDetail.0.description');
		echo $this->Form->input('VenueDetail.0.address1');
		echo $this->Form->input('VenueDetail.0.address2');
		echo $this->Form->input('VenueDetail.0.postal_code');
		echo $this->Form->input('VenueDetail.0.country_id');
		echo $this->Form->input('VenueDetail.0.phone');
		echo $this->Form->input('VenueDetail.0.web');
		echo $this->Form->input('is_active');
		echo $this->Form->input('Guide');
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit', true));?>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('List Venues', true), array('action' => 'index'));?></li>
		<li><?php echo $this->Html->link(__('List Markers', true), array('controller' => 'markers', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Marker', true), array('controller' => 'markers', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Venue Details', true), array('controller' => 'venue_details', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Venue Detail', true), array('controller' => 'venue_details', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Venue Tips', true), array('controller' => 'venue_tips', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Venue Tip', true), array('controller' => 'venue_tips', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Guides', true), array('controller' => 'guides', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Guide', true), array('controller' => 'guides', 'action' => 'add')); ?> </li>
	</ul>
</div>